//秒转时分秒
export const s_to_hms = s=>{
	 //算法：将秒数除以60，然后下舍入，既得到分钟数
	 let h,m;
	 h = Math.floor(s/3600);
	 //分钟
	 m = Math.floor(Math.floor(s%3600)/60)
	 //计算秒
	 //算法：取得秒%60的余数，既得到秒数
	 s = s%60;
	 //将变量转换为字符串
	 h += '';
	 m += '';
	 s += '';
	 //如果只有一位数，前面增加一个0
	 h  =   (h.length==1)?'0'+h:h;
	 m  =   (m.length==1)?'0'+m:m;
	 s  =   (s.length==1)?'0'+s:s;
	 return h+':'+m+":"+s;
 }
 
 //计算下一期期数
 export const getNextISSUE = curIssue=>{
	 if((curIssue+'').slice(8)=="180"){
	 	//当天年月日
	 	let now = new Date();
	 	let month = (now.getMonth()+1)>9?(now.getMonth()+1):'0'+(now.getMonth()+1);
	 	let date = now.getDate()>9?now.getDate():'0'+now.getDate();
	 	let nowDay = now.getFullYear()+''+month+''+date;
	 	return nowDay+"001"
	 }else{
	 	return (parseInt(curIssue)+1)
	 }
 }
 